package com.example.chat.view

import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp
import com.example.chat.navigation.NavigationController
import com.example.chat.navigation.Screen
import com.example.featuresdk.view.*

@Composable
fun TopicSettingScreen(uiConstraints: LayoutConstraints){
    FullScreen(uiConstraints) {

        AppHeaderContainer(uiConstraints.appHeaderBarHeightDp) {
            HeaderBackFeatureEntry{
                NavigationController.instance.back()
            }
            AppHeaderTitle("Setting", uiConstraints.headerWidthDp)
            FeatureEntryPlaceholder()
        }

        AppBodyView(bodyHeightDp = {(uiConstraints.appBodyHeightDp + uiConstraints.appBottomBarHeightDp).dp}) {

            Text(text= Screen.TopicSetting.route)

        }

//        val navHostController = LocalFeatureConfiguration.current.navHostController!!

//        Text(text= ROUTE_CHAT_CHATROOM_SETTING)
//
//        OutlinedButton(onClick = {
//            navHostController.navigate(EXTERNAL_ROUTE_CONTACT_DETAIL.replace("{id}","ABC")){
//                launchSingleTop = true
//            }
//        }) {
//            Text(text = "Click to navigate to Contact detail screen")
//        }
    }
}